package com.fc.authentication.core.migrate.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.fc.authentication.core.migrate.process.DbMigration;
/**
 * Created by Charles on 2017/7/21.
 */

@Configuration
@EnableConfigurationProperties(MigrationProps.class)
public class ProcessConfiguration {
    @Autowired
    private MigrationProps migrationProps;

    @Bean(name = "dbMigration")
    public DbMigration dbMigration() {
        return new DbMigration(migrationProps);
    }
}
